/**
 * 用户名密码登录 body入参
 */
export interface IUserData {
  username: string;
  password: string;
  protocolFlag: string;
}

/**
 * 用户名密码登录 url入参
 */
export interface IUserParams {
  code: string;
  randomStr: string;
}

/**
 * 用户名密码登录 所有入参
 */
export type AccountLoginParams = IUserData & IUserParams;

/**
 * 用户名密码登录 返回参数
 */
export interface LoginResult {
  access_token: string;
  token_type: string;
  refresh_token: string;
  expires_in: string;
  scope: string;
  license: string;
  user_id: string;
  username: string;
}

export interface IResetUser {
  oldPassword: string;
  newPassword: string;
  confirmPassword: string;
}
export interface ModifyUser {
  realName: string;
  phone: string;
  email: string;
}

export interface PwdRetrieve {
  username: string;
  code: string;
}

/**
 * 发送验证码 入参
 */
export interface SendEmailCodeParams {
  /**
   * 邮箱
   */
  username: string;
  /**
   * 图形验证码
   */
  code: string;
  /**
   * 随机吗
   */
  randomStr: string;
  userType: string;
}

export interface IEnterprise {
  enterpriseNo: string;
  enterpriseName: string;
}
